<?php

namespace app\common\model\mall;

use think\Model;
use traits\model\SoftDelete;

class GoodsSku extends Model
{
    use SoftDelete;
    protected $name = 'goods_sku';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = 'deletetime';

    // 追加属性
    protected $append = [
    ];

    public function goods()
    {
        return $this->belongsTo(Goods::class);
    }
}